package seismosurfer.gui.menu;

import java.awt.event.KeyEvent;

import javax.help.CSH;
import javax.swing.JMenu;
import javax.swing.JMenuItem;

import com.bbn.openmap.gui.AbstractOpenMapMenu;

/**
 * This menu can be used to provide
 * access to the data mining operations.
 *
 */
public class MiningMenu extends AbstractOpenMapMenu {
    
    private static final long serialVersionUID = 4330803845889252658L;

    private String defaultText = "Mining";

    private int defaultMnemonic = 'M';

    public MiningMenu() {
        super();
        setText(defaultText);
        setMnemonic(defaultMnemonic);

        CSH.setHelpIDString(this, "miningMenu");

        JMenuItem clustSubMenu = new JMenu("Clustering");
        clustSubMenu.setMnemonic(KeyEvent.VK_C);
        this.add(clustSubMenu);

        JMenuItem kmeansMenuItem = new JMenuItem("K-means", KeyEvent.VK_K);
        clustSubMenu.add(kmeansMenuItem);
        // kmeansMenuItem.addActionListener(this);

        JMenuItem cureMenuItem = new JMenuItem("CURE", KeyEvent.VK_C);
        clustSubMenu.add(cureMenuItem);

        JMenu rulesSubMenu = new JMenu("Rules");
        rulesSubMenu.setMnemonic(KeyEvent.VK_R);
        this.add(rulesSubMenu);

        JMenu classSubMenu = new JMenu("Classification");
        classSubMenu.setMnemonic(KeyEvent.VK_L);
        this.add(classSubMenu);

    }

}
